home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
emu387
/
nest.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-07-09
|
335 b
|
20 lines
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
double x = 3.0;
double y = 7.0;
int
main(int argc, char **argv)
{
int i = argc > 1 ? atoi(argv[1]) : 0;
char buf[100];
if (i == 4)
return 0;
printf("nest %d %g\n", i, x / y);
sprintf(buf, "%s %d\n", argv[0], i+1);
system(buf);
return 0;
}